package com.qa.dao;

import com.qa.pojo.CategoryArticle;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface CategoryArticleMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(CategoryArticle record);

    CategoryArticle selectByPrimaryKey(Integer id);

    List<CategoryArticle> selectAll();

    int updateByPrimaryKey(CategoryArticle record);

    List<CategoryArticle> getByArticleId(Integer articleId);

    void updateByCategoryId(@Param("categoryId") Integer id,@Param("categoryName") String categoryName);
}